<?php
//测试插件

add_action('admin_userlist', array('ha', 'haha'));
add_action('admin_userlist_footer', 'helloworld');

//add_action('admin_userlist_footer', 'addslashes');
//add_action('users::adminList', 'helloworld', 100);
//add_action('users::adminList', array('ha', 'haha'), 1000);

//会员修改
add_action('admin_useredit', 'user_edit');
add_action('admin_useredit_befor', 'user_edit_befor');

function user_edit($uid) {
    echo("您修改了 $uid 号用户……");
}

function user_edit_befor(&$data) {
    return $data['avav'] = true;
}

function helloworld($obj) {
    echo "<h1>Hello World from plugins</h1>";
}

class ha {
    function ha() {
        echo "new ha";
    }

    function haha($obj) {
        $result = $obj->register();
        print_r($result);
    }
}

?>
